package com.wuchao.entity;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.NotNull;


/**
 * @Author wuchao66
 * @Date 2022/7/8 19:36
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class User implements Serializable {
   /* @NotNull*/
    private Integer id;
   /*@NotNull*/
    private String name;
/*@DateTimeFormat(pattern = "yyyy-MM-dd")*/
  /*  @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern ="yyyy-MM-dd")*/
  /*  @AssertTrue*/
    private String sex;

    private static final long serialVersionUID = 1L;
}